package com.pers.springcloud.service;

import com.pers.springcloud.entities.JsonResultVo;
import com.pers.springcloud.service.impl.PaymentFallBackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author huangjian
 */
@FeignClient(value = "nacos-payment-provider",fallback = PaymentFallBackServiceImpl.class)
public interface PaymentService {

    @GetMapping(value = "/paymentSQL/{id}")
    public JsonResultVo paymentSQL(@PathVariable("id") Long id);
}

